<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- ⽐较两个对象或者两个数完全相等 -->
    <script>
        var ObjOne = prompt('请输入某个数或对象');
        var ObjTwo = prompt('请输入某个数或对象');
        if(ObjOne==ObjTwo){
            alert('相等')
        }else{
            alert('不相等')

        }
    </script>
</body>
</html>